]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Add animations for maximize and unmaximize
authorAlessandro Bono <abono@gnome.org>
Sat, 20 May 2017 15:56:48 +0000 (17:56 +0200)
committerAlessandro Bono <abono@gnome.org>
Wed, 24 May 2017 19:10:28 +0000 (21:10 +0200)
The fullscreen animation code is now generic enough to handle any
size change animations, so stop limiting it to (un)fullscreen to
get animations on (un)maximize as well.

https://bugzilla.gnome.org/show_bug.cgi?id=766685

js/ui/windowManager.js

index 325df97d5bc01ad96a57bad7a8b2e5c7f87f6e86..a89c726b4907b23e7cd96a228a90b4252390b37e 100644 (file)
@@ -1313,9 +1313,7 @@ const WindowManager = new Lang.Class({
             return;
         }
 
-        if ((whichChange == Meta.SizeChange.FULLSCREEN ||
-             whichChange == Meta.SizeChange.UNFULLSCREEN) &&
-            oldFrameRect.width > 0 && oldFrameRect.height > 0)
+        if (oldFrameRect.width > 0 && oldFrameRect.height > 0)
             this._prepareAnimationInfo(shellwm, actor, oldFrameRect, whichChange);
         else
             shellwm.completed_size_change(actor);